from django import forms
from l2ldjango.apps.personal_messages.models import *

class ReplyForm(forms.Form):
    
    reply = forms.CharField(widget=forms.Textarea())
    
    def __init__(self, *args, **kwargs):
        super(ReplyForm, self).__init__(*args, **kwargs)
        self.fields['reply'].widget.attrs['class'] = 'reply_field'
        
class ComposeForm(forms.ModelForm):
    
    to_person_id = forms.IntegerField(widget=forms.HiddenInput(),required=False)
    
    class Meta:
        model=Message
        exclude = ('to_user','from_user','when_created','in_response_to',)